import req from './request.js'


// 获取小程序配置
export const getIndexPage = data => req.get('/api/mini/getIndex', data)

// 获取小程序配置
export const getHomeData = data => req.get('/api/mini/getMainPage', data)

// 保存点击
export const saveClickData = data => req.get('/api/mini/getClickData', data)

// 获取单页面内容
export const getSinglePage = data => req.get('/api/mini/getSinglePage', data)

//根据id获取页面内容
export const getPageById = data => req.get('/api/mini/getPageById', data)

// 热门小程序
export const getRandomList = data => req.get('/api/pc/small/getRandomList', data)
//搜索列表
export const getList = data => req.get('/api/pc/small/getList', data)
//搜索热搜列表
export const getHotList = data => req.get('/api/pc/small/getHotList', data)
//搜索新录入列表
export const getNewList = data => req.get('/api/pc/small/getNewList', data)
//获取类型
export const getTypeList = data => req.get('/api/pc/small/getTypeList', data)
//添加小程序数据
export const addInfo = data => req.get('/api/pc/small/addInfo', data)
//上传图片
export const uploadImage = data => req.get('/api/pc/upload/uploadImage', data)

//发送验证码
export const sendMessage = data => req.get('/api/pc/unauthorized/sendMessage', data)

//根据code获取用户信息 me begin
export const getUserInfo = data => req.post('/api/mini/getUserInfo', data);
//用户登录
export const userLogin = data => req.post('/api/mini/userLogin', data);
//每日签到
export const signEveryDate = data => req.post('/api/mini/signEveryDate', data);
//获取用户任务列表
export const getUserTaskList = data => req.post('/api/mini/getUserTaskList', data);
//领取奖励
export const receiveTaskReward = data => req.post('/api/mini/receiveTaskReward', data);
//me end


//幸运抽奖
export const luckyDraw = data => req.get('/api/pc/lottery/luckyDraw', data)
//查询活动
export const queryActivity = data => req.get('/api/pc/lottery/queryActivity', data)
//查询奖项
export const queryAwardsList = data => req.get('/api/pc/lottery/queryAwardsList', data)

//获取自定义分享
export const getShareSetting = data => req.get('/api/mini/getShareSetting', data)

//获取自定义分享
export const updateUserTaskComplete = data => req.get('/api/mini/updateUserTaskComplete', data)
//获取导航列表
export const getNavlist = data => req.get('/api/mini/getNavlist', data)

//获取发现列表
export const getRecommends = data => req.get('/api/mini/getRecommends', data)
//获取banner列表
export const getBanners = data => req.get('/api/mini/getBanners', data)


